package demo3;

import java.util.List;

public class Main {
    public static void main(String [] args){
        CardDo cardDo=new CardDo();
        //买牌
        System.out.println("买牌：");
        List<Card> cardList=cardDo.buyCard();
        System.out.println(cardList);
        //洗牌
        System.out.println("洗牌：");
        cardDo.washCard(cardList);
        System.out.println(cardList);
        //发牌
        List<List<Card>> list=cardDo.play(cardList);
        for(int i=0;i<list.size();i++){
            System.out.println("第"+(i+1)+"个人的牌"+list.get(i));
        }
        System.out.println("剩下的牌：");
        System.out.println(cardList);
    }
}
